package main

import "fmt"

func main() {

	var age int = 90
	if age == 18 {
		fmt.Println("you are adult")
	} else if age <= 50 {
		fmt.Println("you are young")
	} else {
		fmt.Println("you are old")
	}

	str := "Hello GoLang"
	for c := 0; c < len(str); c++ {
		fmt.Printf("%c\t", str[c])
	}

	fmt.Println("")

	for i, v := range str {
		fmt.Printf("index = %d, value = %c\n", i, v)
	}

	day := "Friday"

	switch day {
	case "Monday":
		fmt.Println("Today is Monday")
	case "Tuesday":
		fmt.Println("Today is Tuesday")
	case "Wednesday":
		fmt.Println("Today is Wednesday")
	case "Thursday":
		fmt.Println("Today is Thursday")
	case "Friday":
		fmt.Println("Today is Friday")
	case "Saturday":
		fmt.Println("Today is Saturday")
	case "Sunday":
		fmt.Println("Today is Sunday")
	default:
		fmt.Println("Today is not a workday")
	}

}
